import { LAYOUT } from '@/router/constant';

export default {
  path: '/basics',
  name: 'Basics',
  component: LAYOUT,

  meta: {
    title: '设置',
    hideBreadcrumb: false,
    navNo: 90,
  },
  children: [
    {
      path: 'shop',
      name: 'Shop',
      component: () => import('@/views/basics/shop/index.vue'),
      meta: {
        title: '门店资料',
        showNav: true,
      },
    },

    {
      path: 'staff',
      name: 'Staff',
      component: () => import('@/views/basics/staff/index.vue'),
      meta: {
        title: '员工资料',
        showNav: true,
      },

      children: [
        {
          path: 'add',
          name: 'StaffAdd',
          component: () => import('@/views/basics/staff/edit.vue'),
          meta: {
            title: '新增员工',
            behavior: 'add',
            hiddenOverflow: true,
          },
        },
        {
          path: 'edit',
          name: 'StaffEdit',
          component: () => import('@/views/basics/staff/edit.vue'),
          meta: {
            title: '编辑员工',
            behavior: 'edit',
            hiddenOverflow: true,
          },
        },
      ],
    },

    {
      path: 'room',
      name: 'Room',
      component: () => import('@/views/basics/room/index.vue'),
      meta: {
        title: '房间设置',
        showNav: true,
      },
    },

    {
      path: 'category',
      name: 'ProCategory',
      component: () => import('@/views/product/category/index.vue'),
      meta: {
        title: '商品分类',
        showNav: true,
      },
    },

    {
      path: 'brand',
      name: 'ProBrand',
      component: () => import('@/views/product/brand/index.vue'),
      meta: {
        title: '品牌商品库',
        showNav: true,
      },

      children: [
        {
          path: 'batch-select',
          name: 'ProBrandBatchSelect',
          component: () => import('@/views/product/brand/batch-select.vue'),
          meta: {
            title: '批量选用',
            hiddenOverflow: true,
          },
        },
      ],
    },
  ],
};
